package com.hexiang.service;

import com.hexiang.domain.CommonResponse;
import com.hexiang.domain.User;
import reactor.core.publisher.Mono;

import java.io.Serializable;

public interface UserHttpService {

    Mono<CommonResponse<Serializable>> getUsers();

    Mono<CommonResponse> getUserByName(String name);

    Mono<CommonResponse> addUser(String name, int age);

    Mono<CommonResponse> deleteUserById(Long id);

    Mono<CommonResponse> updateUser(User user);

    Mono<CommonResponse> getUserPage(Integer pageNum, Integer pageSize);

    Mono<CommonResponse> errTest();


}